package com.sa07.user.service;

import java.util.List;

import com.sa07.bean.User;
import com.sa07.exception.DatabaseExecuteFailedException;

/**
 * 用户业务接口
 * 
 * @author Long.shangbo
 *
 * 2014-2-21 下午3:45:47
 */
public interface IUserService {
	
	/**
	 * 查询所有用户
	 * @return
	 * @throws DatabaseExecuteFailedException
	 */
	List<User> queryAllUser() throws DatabaseExecuteFailedException;
	
	/**
	 * 用户登录
	 * @return
	 * @throws DatabaseExecuteFailedException
	 */
	User login(int userId, int roleId, String userPwd) throws DatabaseExecuteFailedException;
}
